package com.xiaozhen.driver.service;

import com.xiaozhen.common.core.domain.driver.ParseDriver;
import com.xiaozhen.common.core.domain.driver.ParseTcpDriver;

import java.util.List;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/29 10:09
 * @description:
 */
public interface ParseTcpDriverService {
    /**
     * 获取驱动列表
     * @return
     */
    List<ParseTcpDriver> selectDriverList(ParseDriver parseDriver);

    /**
     * 查看端口是否存在
     * @param tcpDriver
     * @return
     */
    Boolean checkDriverPortUnique(ParseTcpDriver tcpDriver);

    /**
     * 添加
     * @param tcpDriver
     * @return
     */
    Integer insertDriver(ParseTcpDriver tcpDriver);

    /**
     * 修改
     * @param tcpDriver
     * @return
     */
    Integer updateDriver(ParseTcpDriver tcpDriver);

    /**
     * 删除
     * @param driverId
     * @return
     */
    Integer deleteDriverById(Long driverId);

    /**
     * 根据ID获取驱动信息
     * @param driverId
     * @return
     */
    ParseTcpDriver getDriverById(Long driverId);
}
